package finalproject.shared;


import finalproject.shared.Persoon;
import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Student implements Serializable {

	private static final long serialVersionUID = 1L;
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long studentNr;
	@Persistent(defaultFetchGroup = "true")
	private Persoon persoon;
	@Persistent
	private String klas;
	@Persistent
	private String richting;
	@Persistent
	private String email;
	
	public Student() {
		super();
	}

	public Student(String klas, String richting, String email) {
		super();
		this.klas = klas;
		this.richting = richting;
		this.email = email;
	}

	public Long getStudentNr() {
		return studentNr;
	}

	public void setStudentNr(Long studentNr) {
		this.studentNr = studentNr;
	}
	
	public Persoon getPersoon() {
		return persoon;
	}

	public void setPersoon(Persoon persoon) {
		this.persoon = persoon;
	}
	
	public String getKlas() {
		return klas;
	}

	public void setKlas(String klas) {
		this.klas = klas;
	}

	public String getRichting() {
		return richting;
	}

	public void setRichting(String richting) {
		this.richting = richting;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

}
